package cn.bonoon.util;

public class UrlKeyHelper {
	
	private static final char[] FILTER_CHARS = { '"','\'', '=' };
	
	public static final String filter(String key){
		if(null != key){
			int k = 0;
			char[] chs = key.toCharArray();
			for(int i = 0; i < chs.length; i++){
				char c = chs[i];
				for(char o : FILTER_CHARS){
					if(c == o){
						chs[k] = chs[i];
						k++;
						break;
					}
				}
			}
			key = new String(chs, 0, k);
		}
		return key;
	}
}
